/*
 * @Author: yaoge233 1351192080@qq.com
 * @Date: 2025-01-02 23:41:17
 * @LastEditors: yaoge233 1351192080@qq.com
 * @LastEditTime: 2025-01-02 23:50:34
 * @FilePath: \react-bill\src\router\index.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
// 创建路由实例 绑定path element

import { createBrowserRouter } from "react-router-dom";
import Layout from "@/pages/Layout";
import New from "@/pages/New";
import Month from "@/pages/Month";
import Year from "@/pages/Year";

const router = createBrowserRouter([
  {
    path: '/',
    element: <Layout/>,
    children:[
      {
        index: true,
        element: <Month/>,
      },
      {
        path: '/month',
        element: <Month/>,
      },
      {
        path: 'year',
        element: <Year/>,
      },
    ]
  },
  {
    path: '/new',
    element: <New/>
  }
])

export default router